while True:
    answer = input("q for quit")
    if answer == 'q':
        quit()
    else:
        print(f'Hello, {answer}')
